package com.heima.wemedia.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.model.media.dtos.NewAuthDto;
import com.heima.model.media.pojos.WmNews;
import com.heima.model.media.pojos.WmNewsVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface WmNewsMapper extends BaseMapper<WmNews> {
    List<WmNewsVo> findListAndPage(@Param("dto") NewAuthDto dto);

    /**
     * 查询符合条件的总共有多少条记录
     * @param dto
     * @return
     */
    int findListCount(@Param("dto") NewAuthDto dto);
}
